﻿using SalesSys.DAL.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SalesSys.BLL
{
    public class StockGoodsBLL : BaseBLL<StockGoods, Guid>
    {
      /// <summary>
      /// 通过出库单ID获取相关的商品信息列表
      /// </summary>
      /// <param name="deliveryListId"></param>
      /// <returns></returns>
      public StockGoods[] GetStockGoodsList(Guid deliveryListId)
      {
          StockGoods[] stockGoodsList = Rep.Entities.Where(p => p.DeliveryList.Id == deliveryListId).ToArray();
          return stockGoodsList;
      }
    }
}
